package com.liyy.platform.other.mytest;

import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;

import org.omg.CORBA.portable.InputStream;

public class TestSeverSocket
	{
		public static void main(String [] args) throws IOException{
		ServerSocket serversocket = new ServerSocket(6666);
		while(true){
		Socket s=serversocket.accept();
		DataInputStream dis =new DataInputStream(s.getInputStream());
		System.out.println(dis.readUTF());
		dis.close();
		s.close();
		}
	}
}